import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

const Home = () => import('./views/Home');

const VideoAutoMove = () => import('./views/VideoAutoMove');
const SystemSetting = () => import('./views/SystemSetting');
const HttpClientTest = () => import('./views/HttpClientTest');
const UploadToServer = () => import('./views/UploadToServer');
const Websocket = () => import('./views/Websocket');

const Test = () => import('./views/Test');

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  }, {
    path: '/video-auto-move',
    name: 'VideoAutoMove',
    component: VideoAutoMove
  }, {
    path: '/system-setting',
    name: 'SystemSetting',
    component: SystemSetting
  }, {
    path: '/http-client-test',
    name: 'HttpClientTest',
    component: HttpClientTest
  }, {
    path: '/upload-to-server',
    name: 'UploadToServer',
    component: UploadToServer
  }, {
    path: '/websocket',
    name: 'Websocket',
    component: Websocket
  }, {
    path: '/test',
    name: 'Test',
    component: Test
  }, {
    path: '/*',
    redirect: '/'
  },
];


export default new Router({
  routes: routes
})
